{% comment %}
Variables:
    - s: sidebar section name
    - r: required
    - u: url
    - t: text
    - a: AuditMangement (show audit badge) | None
{% endcomment %}

<li {% if am_info.0.1 < r %}class="tw:menu-disabled"{% endif %}>
    <a {% if sidebar_sec == s %}class="tw:menu-active"{% endif %} {% if am_info.0.1 >= r %}href="{% url u %}"{% endif %}>
        {% trans t %}
        {% if a is not None %}
            {% with status=a %}
                {% include 'components/am_badge.html' %}
            {% endwith %}
        {% endif %}
    </a>
</li>

